package com.zuipin.enums;

/**
 * @author zhuangjiajian
 * @date 2017-7-29 15:48:36
 */
public enum GrowthValType {
	
	// 充值方式:充值，礼品卡充值（醉品），退款转充值（醉品）购物使用充值
	BUY_USE(1, "购物送成长值"), //
	REFUND(2, "退款扣除成长值"), //
	SIGN_IN(3, "签到送成长值"), //
	SHARE(4, "分享送成长值"), //
	EVALUATE(5, "评价送成长值"), //
	BACK_ADD(6, "后台调整会员等级送成长值"), //
	BACK_REMOVE(7, "后台调整会员等级扣除成长值");//
	
	private Integer	key;
	private String	name;
	
	GrowthValType(Integer i, String str) {
		this.key = i;
		this.name = str;
	}
	
	public Integer getKey() {
		return key;
	}
	
	public void setKey(Integer key) {
		this.key = key;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public static String findTypeName(String growthValType) {
		if (GrowthValType.BUY_USE.toString().equals(growthValType)) {
			return "消费";
		} else if (GrowthValType.REFUND.toString().equals(growthValType)) {
			return "消费";
		} else if (GrowthValType.BACK_ADD.toString().equals(growthValType)) {
			return "其他";
		} else if (GrowthValType.BACK_REMOVE.toString().equals(growthValType)) {
			return "其他";
		}
		return "其他";
	}
}
